﻿using Forum.Model.Entity.System;
using SqlSugar;

namespace Forum.Model.Entity
{
    /// <summary>
    /// 消息通知
    /// </summary>
    [SugarTable("Notice")]
    public class Notice
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        public string Msg { get; set; }
        public DateTime PublishDate { get; set; }
        public string UserId { get; set; }

        [Navigate(NavigateType.OneToOne, nameof(UserId))]
        public SYS_USER User { get; set; }
        public bool IsRead { get; set; }
    }
}
